package com.baidu.fengchao.broad;

import com.baidu.fengchao.broad.bo.ProductType;
import org.nutz.mvc.annotation.At;
import org.nutz.mvc.annotation.IocBy;
import org.nutz.mvc.annotation.Modules;
import org.nutz.mvc.annotation.SetupBy;
import org.nutz.mvc.ioc.provider.JsonIocProvider;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 * User: xiaojiangang
 * Date: 13-5-2
 * Time: 下午10:35
 */
@IocBy(type=JsonIocProvider.class, args={"ioc.js"})
@Modules(scanPackage = true)
@SetupBy(SetUp.class)
public class MainModule{
    @At("/")
    public void redirect(HttpServletResponse response) throws IOException {
        response.sendRedirect("index.html");
    }
}
